package com.jml.jdk8.函数方法;

import java.util.function.Predicate;

public class PredicateTest {

    public static void main(String[] args) {
        Predicate<Object> equal = Predicate.isEqual("123");
        Boolean a = equal.test("123");
        System.out.println(a);

        int z = 1;
        Predicate<Integer> p = (Integer q) -> {
            return q > 0;
        };
        boolean test = p.test(z);
        System.out.println(test);
    }
}
